package com.design.decorator;

/**
* Description: 装饰模式<br/>
* date: 2023/11/24 10:37<br/>
* @author: zhangzaijun <br/>
* @since JDK 1.8
*/

public class DecoratorMain {
    public static void main(String[] args) {
        Circle circle = new Circle();
        circle.draw();
        DecoratorShape decoratorShape1 = new DecoratorShape(circle);
        decoratorShape1.draw();
        new DecoratorShape(new Rectangle()).draw();
    }
}
